package com.fanxing.generic.service;

import com.fanxing.generic.entity.GenericClass;

/**
 * @author zhaoyunlong
 * @date 2020/10/20
 * @description
 */
public class GenericServiceImpl {


    public static void main(String[] args) {

//        genericClassTest();

        System.out.println(13&17);

        GenericInterface genericInterface = new GenericSub();
        genericInterface.test2("zhao");

        GenericInterface<String> genericInterfaceTwo = new GenericSub();
        genericInterfaceTwo.test2("zhao");

        GenericInterface<Integer> genericInterfaceThree = new GenericSubTwo<>();
        genericInterfaceThree.test2(123);

        GenericInterface<String> genericInterfaceFour = new GenericSubTwo<>();
        genericInterfaceFour.test2("zhao");
    }

    private static void genericClassTest() {
        GenericClass<String> generic = new GenericClass<>();
        generic.setA("long");
        generic.setId("1");

        System.out.println(generic.toString());
    }

}
